<?php
Prado::using('yap.web.ui.CPageGrid');
Prado::using('Application.data.ar.UserRecord');

class Sample2 extends CPageGrid
{
	public function getCriteriaCondition()
	{
		return 'username LIKE :search_keyword';
	}

	public function getData(TActiveRecordCriteria $criteria)
	{
		return UserRecord::finder()->findAll($criteria);
	}
}